package app.modules.infrastructure.profile.persistence.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jasmine.framework.database.mybatisplus.annotation.I18n;
import jasmine.framework.database.mybatisplus.entity.BaseI18nEntity;

/**
 * @author mh.z
 */
@TableName("sys_profile_item")
public class ProfileItemEO extends BaseI18nEntity {

    /** 代码 */
    @TableField("item_code")
    private String itemCode;

    /** 名称 */
    @I18n
    @TableField("item_name")
    private String itemName;

    /** 描述 */
    @I18n
    @TableField(value = "item_desc", updateStrategy = FieldStrategy.IGNORED)
    private String itemDesc;

    /** 允许租户级配置 */
    @TableField(value = "allow_tenant_override_flag")
    private Boolean allowTenantOverrideFlag;

    /** 允许用户级配置 */
    @TableField(value = "allow_user_override_flag")
    private Boolean allowUserOverrideFlag;

    /** 启用标志 */
    @TableField("enable_flag")
    private Boolean enableFlag;

    /** 租户ID */
    @TableField("tenant_id")
    private Long tenantId;

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemDesc() {
        return itemDesc;
    }


    public void setItemDesc(String itemDesc) {
        this.itemDesc = itemDesc;
    }

    public Boolean getAllowTenantOverrideFlag() {
        return allowTenantOverrideFlag;
    }

    public void setAllowTenantOverrideFlag(Boolean allowTenantOverrideFlag) {
        this.allowTenantOverrideFlag = allowTenantOverrideFlag;
    }

    public Boolean getAllowUserOverrideFlag() {
        return allowUserOverrideFlag;
    }

    public void setAllowUserOverrideFlag(Boolean allowUserOverrideFlag) {
        this.allowUserOverrideFlag = allowUserOverrideFlag;
    }

    public Boolean getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(Boolean enableFlag) {
        this.enableFlag = enableFlag;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }
}
